<!DOCTYPE HTML>
<html>
	<head>
		<title>SOAP-Test</title>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
		<meta name="script" http-equiv="Content-Script-Type" content="text/javascript" />
		<meta name="script" http-equiv="Content-Style-Type" content="text/css" />
		<meta http-equiv="Access-Control-Allow-Origin" content="*">
		<script src="../js/soapclient.js" type="text/javascript"></script>
		<script>
			// Test Webservice
			var url = 'http://www.openligadb.de/Webservices/Sportsdata.asmx';
			var groupOrderId = 1;
			var ligaId =  676;
			var ligaShort = "wm-2014";
			var saison = "2014";
			
			function getGroups(){
			    var pl = new SOAPClientParameters();
			    pl.add("groupOrderID", groupOrderId);
				pl.add("leagueShortcut", ligaShort);
				pl.add("leagueSaison", saison);
			    SOAPClient.invoke(url, "GetMatchdataByGroupLeagueSaison", pl, true, callback);
			}
			function callback(r){
				alert(r[0].groupName);
			}
		</script>
	</head>
	<body>
		<button onclick="getGroups()">send Request</button>
	</body>
</html>